
package com.chengyu.eyc.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.chengyu.eyc.utils.EycGenId;

import tk.mybatis.mapper.annotation.KeySql;

@Table(name = "eyc_data_config")
public class EycDataConfig extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @KeySql(genId = EycGenId.class)
    @Id
    @Column(name = "DATA_CONFIG_ID")
    private String dataConfigId;

    /**
     * 数据类编码
     */
    @Column(name = "DC_TYPE_CODE")
    private String dcTypeCode;

    /**
     * 数据类名
     */
    @Column(name = "DC_TYPE_NAME")
    private String dcTypeName;

    /**
     * 数据可选值
     */
    @Column(name = "DC_OPTIONS")
    private String dcOptions;

    /**
     * 数据可选值(中文)
     */
    @Column(name = "DC_OPTIONS_CN")
    private String dcOptionsCn;

    /**
     * 常用标识
     */
    @Column(name = "IS_FAVOURITE")
    private Boolean isFavourite;

    /**
     * 超链接
     */
    @Column(name = "URL")
    private String url;

    /**
     * 失效标志
     */
    @Column(name = "DISABLE")
    private Boolean disable;

    @Column(name = "REMARK")
    private String remark;

    /**
     * @return DATA_CONFIG_ID
     */
    public String getDataConfigId() {
        return dataConfigId;
    }

    /**
     * 获取数据可选值
     *
     * @return DC_OPTIONS - 数据可选值
     */
    public String getDcOptions() {
        return dcOptions;
    }

    /**
     * 获取数据可选值(中文)
     *
     * @return DC_OPTIONS_CN - 数据可选值(中文)
     */
    public String getDcOptionsCn() {
        return dcOptionsCn;
    }

    /**
     * 获取数据类编码
     *
     * @return DC_TYPE_CODE - 数据类编码
     */
    public String getDcTypeCode() {
        return dcTypeCode;
    }

    /**
     * 获取数据类名
     *
     * @return DC_TYPE_NAME - 数据类名
     */
    public String getDcTypeName() {
        return dcTypeName;
    }

    /**
     * 获取失效标志
     *
     * @return DISABLE - 失效标志
     */
    public Boolean getDisable() {
        return disable;
    }

    /**
     * 获取常用标识
     *
     * @return IS_FAVOURITE - 常用标识
     */
    public Boolean getIsFavourite() {
        return isFavourite;
    }

    /**
     * @return REMARK
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 获取超链接
     *
     * @return URL - 超链接
     */
    public String getUrl() {
        return url;
    }

    /**
     * @param dataConfigId
     */
    public void setDataConfigId(String dataConfigId) {
        this.dataConfigId = dataConfigId == null ? null : dataConfigId.trim();
    }

    /**
     * 设置数据可选值
     *
     * @param dcOptions 数据可选值
     */
    public void setDcOptions(String dcOptions) {
        this.dcOptions = dcOptions == null ? null : dcOptions.trim();
    }

    /**
     * 设置数据可选值(中文)
     *
     * @param dcOptionsCn 数据可选值(中文)
     */
    public void setDcOptionsCn(String dcOptionsCn) {
        this.dcOptionsCn = dcOptionsCn == null ? null : dcOptionsCn.trim();
    }

    /**
     * 设置数据类编码
     *
     * @param dcTypeCode 数据类编码
     */
    public void setDcTypeCode(String dcTypeCode) {
        this.dcTypeCode = dcTypeCode == null ? null : dcTypeCode.trim();
    }

    /**
     * 设置数据类名
     *
     * @param dcTypeName 数据类名
     */
    public void setDcTypeName(String dcTypeName) {
        this.dcTypeName = dcTypeName == null ? null : dcTypeName.trim();
    }

    /**
     * 设置失效标志
     *
     * @param disable 失效标志
     */
    public void setDisable(Boolean disable) {
        this.disable = disable;
    }

    /**
     * 设置常用标识
     *
     * @param isFavourite 常用标识
     */
    public void setIsFavourite(Boolean isFavourite) {
        this.isFavourite = isFavourite;
    }

    /**
     * @param remark
     */
    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    /**
     * 设置超链接
     *
     * @param url 超链接
     */
    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", dataConfigId=").append(dataConfigId);
        sb.append(", dcTypeCode=").append(dcTypeCode);
        sb.append(", dcTypeName=").append(dcTypeName);
        sb.append(", dcOptions=").append(dcOptions);
        sb.append(", dcOptionsCn=").append(dcOptionsCn);
        sb.append(", isFavourite=").append(isFavourite);
        sb.append(", url=").append(url);
        sb.append(", disable=").append(disable);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

}